package com.demo.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.util.Assert;

import com.demo.dao.BaseDao;
import com.demo.dao.PermissionDao;
import com.demo.entity.Permission;

@Repository
public class PermissionDaoImpl extends BaseDao<Permission> implements PermissionDao{

	
	@Override
	public List<Permission> findPermissionsByRoleId(String roleId) {
		Assert.notNull(roleId);
		return find("role_id", roleId, Permission.class);
	}

	

}
